﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace _2023_5_15简单记事本
{
    public partial class Longing : Form
    {
        public Longing()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string name = textBox1.Text;
            string passward = textBox2.Text;
            if(name=="彭定俊"&&passward=="123456789")
            {
                NoteBook form = new NoteBook();
                form.Show();
            }
            else
            {
                textBox1.Text = " ";
                textBox2.Text = " ";
                MessageBox.Show("用户名或密码错误");
            }
            
        }
    }
}
